
/**
 * Title:        <p>
 * Description:  Java object database; also code analysis tool<p>
 * <p>Copyright (c) 2000-2005  Michael A. MacDonald<p>
 * ----- - - -- - - --
 * <p>
 *     This package is free software; you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation; either version 2 of the License, or
 *     (at your option) any later version.
 * <p>
 *     This package is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 * <p>
 *     You should have received a copy of the GNU General Public License
 *     along with the package (see gpl.txt); if not, see www.gnu.org
 * <p>
 * ----- - - -- - - --
 * Company:      <p>
 * @author Michael MacDonald
 * @version 1.0
 */
package com.antlersoft.classwriter;

import java.io.DataOutputStream;
import java.io.DataInputStream;
import java.io.IOException;

class UnknownAttribute implements Attribute
{
	private byte[] _bytes;
 	private String _type;

	UnknownAttribute( int length, String type, DataInputStream classStream)
 		throws IOException
 	{
  		_bytes=new byte[length];
    	_type=type;
     	classStream.readFully( _bytes);
  	}

    public void write(DataOutputStream classStream) throws IOException
    {
    	classStream.write( _bytes);
    }

    public String getTypeString()
    {
    	return _type;
    }
}